#ifndef __ENCODE_H__
#define __ENCODE_H__

#include <rtthread.h>
#include <rtdevice.h>
#include <board.h>
#include "stm32f1xx_hal.h"

void wire_power_driver();



enum WP_CMD{
	WP_CMD_IDLE =0,
	WP_CMD_OK =1,
	WP_CMD_FAIL =2,
	WP_CMD_DEALING =3
};
enum WP_CMD wp_open_lock(void);
enum WP_CMD wp_close_lock(void);
#endif